class CreateUsers < ActiveRecord::Migration
  def self.up
    create_table :users, :options => "ENGINE=NDBCLUSTER" do |t|
      t.string   :username
      t.string   :crypted_password, :salt, :limit => 40
      t.string   :remember_token
      t.datetime :remember_token_expires_at
      t.auto_dates
    end
    
    User.create(:id => "1", :username => "CRSystem", :password => "CHANGEME")
  end

  def self.down
    drop_table :users
  end
end
